.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 20px;
  position: relative;
}

.message, .signin {
  color: rgba(88, 87, 87, 0.822);
  font-size: 18px;
}

.signin {
  text-align: center;
}

.signin a {
  color: royalblue;
}

.signin a:hover {
  text-decoration: underline royalblue;
}

.flex {
  display: flex;
  width: 100%;
  /* gap: 50px; */
}

.flex {
  display: flex;
  gap: 1rem;
}

.flex label {
  flex: 1; /* Makes both labels equal width */
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}


.form label {
  position: relative;
}

.form label .input {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 10px;
}

.form label .input + span {
  position: absolute;
  left: 10px;
  top: 15px;
  color: grey;
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .input:placeholder-shown + span {
  top: 15px;
  font-size: 0.9em;
}

.form label .input:focus + span,.form label .input:valid + span {
  top: 30px;
  font-size: 0.7em;
  font-weight: 600;
}

.form label .input:valid + span {
  color: green;
}

.submit {
  background: linear-gradient(45deg, #03c4fe, #f64eb7);
  border: none;
  color: #fff;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.submit:hover {
  background: linear-gradient(45deg, #f64eb7, #03c4fe);
  transform: scale(1.05);
  color: #fff;}

@keyframes pulse {
  from {
    transform: scale(0.9);
    opacity: 1;
  }

  to {
    transform: scale(1.8);
    opacity: 0;
  }
}


.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch;
  margin-top: 2rem;
}

.contact-form-box, .contact-map-box {
  flex: 1 1 48%;
  min-width: 300px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center horizontally */
}

.contact-form-box .form {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  /* box-shadow: 0 0 10px rgba(0,0,0,0.1); */
  margin-top: 20px;
}

.contact-map-box iframe {
  width: 100%;
  height: 70%;
  min-height: 450px;
  border-radius: 10px;
}

/* On smaller screens, stack layout */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-form-box, .contact-map-box {
    flex: 1 1 100%;
    align-items: center;
  }

  .contact-map-box iframe {
    min-height: 300px;
  }
}
